<%@page import="ca.lscs.web.utils.SessionUtils"%>
<%@page import="ca.lscs.model.AppUser"%>
<%@page import="ca.lscs.model.UserType"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%
	AppUser user = SessionUtils.getUserSession(session);
%>
<div class="top-bar">
	<div class="logo">
		<a class="logo" href="/">LSCS</a>
	</div>
	<div class="info">
		<ul>
			<li class="user"><%=user.getUsername()%></li>
			<li class="logout"><a href="/logout">logout</a></li>
		</ul>
	</div>
</div>
<div class="left-bar">
	<ul class="actions">
		<%if(user.getType() == UserType.MANAGER) {%>
		<li><button class="create" onclick="top.location='/checklist/create'">Create Checklist</button>
		<%}%>
	</ul>
	<ul class="checklists">
		<li onclick="top.location='/'">Assigned</li>
		<li onclick="top.location='/submitted'">Submitted</li>
	</ul>
</div>